package com.huajin.iot.config;

import com.huajin.iot.common.service.EsDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ESConfig {

    @Value("${elasticsearch.ips}")
    private String ips;


    @Bean
    public EsDataSource getEsDataSource() {
        return new EsDataSource(ips);
    }
}

